window.onload = function() {
  const value = document.querySelector('.input').value
  document.querySelector('.submit').addEventListener('click', function(){
    location.href= '../html/home.html'
    localStorage.setItem('name', value)
  
  })
}